﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace FotoLab.DomainLayer.Helper
{
    public class Adres
    {

        private string _postcode;

        public string Postcode {
            get
            {
                return _postcode;
            }
            set {
                _postcode = value != null ? value.Replace(" ", "") : null;
            }
        }

        public string Huisnummer { get; set; }

        public string Straatnaam { get; set; }
        public string Plaats { get; set; }

        public override string ToString()
        {
            return Straatnaam + " " + Huisnummer + Environment.NewLine +
                   Postcode + " " + Plaats;
        }

    }
}